package cn.mavor.day0903;

import java.util.Scanner;
public class pipe {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        System.out.print("输入你需要的长度：");
        float length = sc.nextFloat();
        int pipe1 = (int) (length / 3);
        int pipe2 = 0;
        if(length%3!=0){
            pipe2 = 1;
        }
        int pipe = pipe1+pipe2;
        System.out.print("你需要购买"+pipe+"根");
    }
}
